package com.itcast.order.feign;

import com.itcast.order.entity.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignClientCallback implements ProductFeignClient{

    /**
     * 熔断降级方法
     */
    @Override
    public Product findById(Long id) {
        Product product = new Product();
        product.setProductName("feign调用熔断降级");
        return product;
    }
}
